#include <iostream>

/**
 * 计算4的幂
 * 
 */
int main(){
    int n;
    std::cin >> n;

    int res = 1<<(2*n);

    std::cout << res;


    return 0;
}